package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class HostParameterName implements LocatorReference, SimpleValueSpecification {

    private int beginIndex;
    private int endIndex;
    private Identifier identifier;

    public HostParameterName(int beginIndex, Identifier identifier) {
        this.beginIndex = beginIndex;
        this.endIndex = identifier.getEndIndex();
        this.identifier = identifier;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getIdentifier() {
        return identifier;
    }

}
